import request from '@/utils/request'
export default {
    //1 用户列表（条件查询分页）
    //current当前页 limit每页记录数 Query条件对象
    getListPage(current,limit,Query) {
        return request({
            url: `/scenic/scenicPage/${current}/${limit}`,
            method: 'post',
            data: Query
          })
    },
    getapiInfo(id){
      return request({
        url:`/scenic/getInfo/${id}`,
        method: 'get'
      })
    },
    addScenic(Scenic){
      return request({
        url: `/scenic/addScenic`,
        method: 'post',
        data: Scenic
      })
    },
    updateScenicInfo(Scenic){
       return request({
         url: `/scenic/updateScenic`,
         method: 'post',
         data: Scenic
       })
    },
    //删除景点
    deletebyId(id) {
      return request({
          url: `/scenic/deleteById/${id}`,
          method: 'post'
        })
    }
}
